<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <title>登录页面</title>
</head>
<body>
<%
    if (request.getAttribute("error") != null)
    {
%>
<h2><%= request.getAttribute("error") %></h2>
<%
    }
%>

<form action="${pageContext.request.contextPath}/login" method="post">
    用户名：<input type="text" name="id"><br>
    密码：<input type="password" name="password"><br>
    <input type="submit">
</form>
</body>
</html>
